//
//  MXArcChart.h
//  MXPieChart
//
//  Created by 马彦 on 16/11/3.
//  Copyright © 2016年 MX. All rights reserved.
//

#import "JHChart.h"

@class MXArcChart;

#define k_Width_Scale  (self.frame.size.width / [UIScreen mainScreen].bounds.size.width)

typedef NS_ENUM(NSInteger, TitleLocationStyle) {
    TitleLocationStyleLeft,
    TitleLocationStyleCenter,
    TitleLocationStyleRight
};

@protocol MXArcChartDelegate <NSObject>

- (void)ringChart:(MXArcChart *)ringChart introduceOnAction:(id)info;

@end

@interface MXArcChart : JHChart

@property (nonatomic, weak) id<MXArcChartDelegate> delegate;

/** 标题 */
@property (nonatomic, copy) NSString *titleName;

/** 标题位置 */
@property (nonatomic, assign) TitleLocationStyle style;

/** 标题颜色 */
@property (nonatomic, strong) UIColor *titleColor;
/** 标题颜色 */
@property (nonatomic, strong) UIFont *titleFont;

/** 颜色数组 */
@property (nonatomic, strong) NSArray<UIColor *> *colors;

@property (nonatomic, strong) NSArray *valueDataArr;
/** 组名名 */
@property (nonatomic, strong) NSArray *nameArray;
/** 线长度 */
@property (nonatomic, assign) NSUInteger lineLong;


@end
